import { createSchemaFormRender } from '@/components/schema-form-render/index';

import { useMemo } from 'react';
import { useParams } from 'react-router-dom';
import { PageMetaConfig } from '../interface';

import { WithNormalRender } from '@/biz-components/hoc-form/with-normal';
import { apiUrl } from '../api';

const AccountDetail = () => {
  const { id } = useParams<any>();
  const BillFormLayout: any = useMemo(() => {
    return WithNormalRender({});
  }, []);
  return <BillFormLayout
    anchor
    type="DETAIL"
    {...{
      remoteUrl: apiUrl.detail,
      method: 'POST',
      remoteParams: {
        id,
      },
      pageCode: PageMetaConfig.DETAIL
    }}
    formConfigs={{

    }}
    filedConfig={{}}
  />
};

export default AccountDetail;
